package com.zy.batiya.service;

import java.util.List;

import com.zy.batiya.domain.User;


public interface UserService {
	
	public User findByName(String name)throws Exception;
	
	public List<User> findAll()throws Exception;
	
	public User findById(Integer id)throws Exception;
	
	public Integer save(User user)throws Exception;

	public void updateUser(User user);

	public void deleteById(Integer id);

	public List<User> getUsersByName(String userName, Integer start,Integer length, String columnName, String orderDir);

	public Integer getUsersPageCountByName(String userName);

	public Integer verifyPassWord(String userName, String md5);

	public void updatePassWord(Integer id, String md5);
}	
